import request from '@/utils/request'

// 查询汇总库存调拨单列表
export function listSumstocktransferbill(query) {
  return request({
    url: '/settlementCenter/basebill/sumstocktransferbill/list',
    method: 'get',
    params: query
  })
}

// 查询汇总库存调拨单详细
export function getSumstocktransferbill(id) {
  return request({
    url: '/settlementCenter/basebill/sumstocktransferbill/' + id,
    method: 'get'
  })
}

// 新增汇总库存调拨单
export function addSumstocktransferbill(data) {
  return request({
    url: '/settlementCenter/basebill/sumstocktransferbill',
    method: 'post',
    data: data
  })
}

// 修改汇总库存调拨单
export function updateSumstocktransferbill(data) {
  return request({
    url: '/settlementCenter/basebill/sumstocktransferbill',
    method: 'put',
    data: data
  })
}

// 删除汇总库存调拨单
export function delSumstocktransferbill(id) {
  return request({
    url: '/settlementCenter/basebill/sumstocktransferbill/' + id,
    method: 'delete'
  })
}
